<?php
include('config.php');
$uid=$_POST['uid'];
$ufriend=$_POST['ufriend'];
	$sql="INSERT INTO userdata (uid,fid) VALUES('$uid','$ufriend')";		
	$sqlquery=mysql_db_query($dbname,$sql);
	$sql="INSERT INTO userdata (uid,fid) VALUES('$ufriend','$uid')";		
	$sqlquery=mysql_db_query($dbname,$sql);
	echo "y";


mysql_close();
?>